﻿<UserControl x:Class="jsGotoDefinition.VS2010.JSDefinitionControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:vsfx="clr-namespace:Microsoft.VisualStudio.Shell;assembly=Microsoft.VisualStudio.Shell.10.0"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300"
             Name="MyToolWindow" 
             >
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        
            <TabControl Grid.Row="0" Name="tabControl1">
                <TabItem Header="Definitions found" Name="tabItemDefinitions">
                    <Grid>
                        <DataGrid AutoGenerateColumns="False" Name="dataGridDefinitions" FlowDirection="LeftToRight" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" EnableRowVirtualization="False" IsReadOnly="True" SelectionChanged="dataGridDefinitions_SelectionChanged" MouseDoubleClick="dataGridDefinitions_MouseDoubleClick">
                            <DataGrid.Columns>
                                <DataGridTextColumn Binding="{Binding FileName}" Header="Location" />
                                <DataGridTextColumn Binding="{Binding LineNumber}" Header="Line" />
                                <DataGridTextColumn Binding="{Binding LineText}" Header="Text" />
                            </DataGrid.Columns>
                        </DataGrid>
                    </Grid>
                </TabItem>
                <TabItem Header="Errors" Name="tabItemErrors">
                    <Grid>
                        <DataGrid AutoGenerateColumns="False"  FlowDirection="LeftToRight" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" EnableRowVirtualization="False" IsReadOnly="True" Name="dataGridErrors">
                            <DataGrid.Columns>
                                <DataGridTextColumn Binding="{Binding Message}" Header="Message" />
                            </DataGrid.Columns>
                        </DataGrid>
                    </Grid>
                </TabItem>
            </TabControl>            
    </Grid>
</UserControl>
